<?php

// 配置数据库
require("include/db.php");
 
// 连接数据库
require("include/conn.php");

// 配置系统
require("include/config.php");

// 获取数据
$z100=$_POST['y100'];
$z110=$_POST['y110'];
$z111=$_POST['y111'];

// 输出测试
if (TestMod=="1")
    echo $z100;
		echo "<br />";
	echo $z110;
		echo "<br />";
	echo $z111;
		echo "<br />";

// 处理
$sql=("UPDATE hnw_Main SET w110='{$z110}',w111='{$z111}' WHERE w100='{$z100}'");
$result=mysql_query($sql);

// 判断
if(mysql_affected_rows()){
		echo "<h1>修改成功！</h1><br /><h2><a href='index.php'>返回首页</a></h2>";
	}else{
		echo "<h1>修改失败！</h1><br /><h2><a href='index.php'>返回首页</a></h2>";
	}

//关闭连接
mysql_close($connect);
?>

<!doctype html>
<html>
<head>
<meta charset="gbk">
<title>添加处理 - <?php  echo sysname; ?> <?php echo version; ?> - Powered by Y.Z.W</title>
</head>

<body>

</body>
</html>